Skip to main content
POST
/
agent
/
sessions
[BETA] Create workspace agent session
curl --request POST \
  --url https://api.getpg.ai/public-api/v1/agent/sessions \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "title": "<string>",
  "company_id": "<string>",
  "type": "document"
}
'
{}

Documentation Index

Fetch the complete documentation index at: https://docs.getpg.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

x-api-key
string
header
required

Your API key for authentication. Get your API key from the PG:AI dashboard under Settings > API Keys.

Body

application/json
title
string

Session title; defaults to Untitled if omitted

company_id
string

Optional company UUID (scoped session)

type
enum<string>

Session type; defaults to chat if missing or invalid

Available options:
document,
chat,
plan,
canvas_settings,
email,
workspace,
project

Response

Created

Response data